package com.skb.core.service;

import com.skb.core.dao.InterestRateDao;
import com.skb.core.model.InterestRate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;

@Service("interestRateService")
public class InterestRateService implements IInterestRateService {

    @Autowired
    private InterestRateDao interestRateDao;

    @Override
    public InterestRate create(InterestRate interestRate) {
        return interestRateDao.create(interestRate);
    }

    @Override
    public InterestRate get(Serializable id) {
        return interestRateDao.get(id);
    }

    @Override
    public InterestRate update(InterestRate interestRate) {
        return interestRateDao.update(interestRate);
    }

    @Override
    public void delete(InterestRate interestRate) {
        interestRateDao.delete(interestRate);
    }
}
